<?php
include_once('./config/config.php');
$admin = AuthCheck();
$action = $_GET['action'] ?? '';
// 退出账号
if ($action === 'logout') {
    setcookie('auth', '', time() - 1);
    notice('退出成功', 'login.php');
}
?>

<!DOCTYPE html>
<html lang="en">

<head>
    <?php include_once('./common/meta.php'); ?>
</head>

<body>
    <!-- 公共头部 -->
    <?php include_once('./common/header.php'); ?>
    <!-- 公共菜单栏 -->
    <?php include_once('./common/menu.php'); ?>

    <div class="content">
        <div class="header">
            <h1 class="page-title">后台首页</h1>
        </div>
        <ul class="breadcrumb">
            <li><a href="index.php">Home</a> <span class="divider">/</span></li>
            <li class="active">Index</li>
        </ul>

        <!-- 公共底部 -->
        <div class="container-fluid">
            <div class="row-fluid">
                <?php include_once('./common/footer.php'); ?>
            </div>
        </div>
    </div>
</body>

</html>
<!-- 公共js -->
<?php include_once('./common/script.php'); ?>